package soap.feign.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import soap.feign.dto.PersonDto;
import soap.feign.query.UserQuery;
import soap.feign.service.hystrix.MSUserServiceFeignHystrix;

/**
 * Created by ZhangPY on 2020/6/7
 * Belong Organization OVERUN-9299
 * overun9299@163.com
 * Explain:
 */
@FeignClient(value = "micro-service-user" , fallback = MSUserServiceFeignHystrix.class)
public interface MSUserServiceFeign {

    /**
     * 列表查询Person
     * @param personDto
     * @return
     */
    @RequestMapping(value = "ms/user/person/getPersonListForExport" , method = RequestMethod.POST , consumes = "application/json")
    String getPersonListForExport(@RequestBody PersonDto personDto);


    /**
     * 列表查询User
     * @param userQuery
     * @return
     */
    @RequestMapping(value = "ms/user/user/getUserListByPage" , method = RequestMethod.POST , consumes = "application/json")
    String getUserListForExport(@RequestBody UserQuery userQuery);
}
